#ifndef  __tempAd_h   
    #define __tempAd_h
//Hal
	//ad6
//#define D_adChannel  0x10
//Const	
    #define D_shortValue   4090    //短路
    #define D_offValue   50     //断路
 #define D_kettleValidTimer  10//10分钟
    #define D_kettleCalmTimer   3  //3s  
    #define D_tempChangeTime 40 //s
    
//Var
	#ifdef __tempAd_c 
	   bit  bAdBottomGaoWen; 
	   bit   bAdGood;
		bit   bAdBottomShort ;
		bit   bAdBottomOff ;
		uint8_t   curTempBottom ;
		uint8_t   holdAdBottomOff;
		uint8_t   holdAdBottomShort;
		uint8_t   holdAdBottomGaoWen;
		bit   bAdBottomShortBuzz;
		bit   bAdBottomGaoWenBuzz;
		bit   bAdBottomOffBuzz;
		
		
		
		  bit  bAdTopGaoWen; 
		bit   bAdTopShort ;
		bit   bAdTopOff ;
		uint8_t   curTempTop ;
		uint8_t   holdAdTopOff;
		uint8_t   holdAdTopShort;
		uint8_t   holdAdTopGaoWen;
		bit   bAdTopShortBuzz;
		bit   bAdTopGaoWenBuzz;
		bit   bAdTopOffBuzz;
	#else
	extern 	  bit  bAdTopGaoWen; 
	extern 	bit   bAdTopShort ;
	extern 	bit   bAdTopOff ;
	extern 	uint8_t   curTempTop ;
	extern 	uint8_t   holdAdTopOff;
	extern 	uint8_t   holdAdTopShort;
	extern 	uint8_t   holdAdTopGaoWen;
	extern 	bit   bAdTopShortBuzz;
	extern 	bit   bAdTopGaoWenBuzz;
	extern 	bit   bAdTopOffBuzz;
	extern bit   bAdBottomShortBuzz;
		extern bit   bAdBottomGaoWenBuzz;
		extern bit   bAdBottomOffBuzz;
		extern uint8_t   holdAdBottomGaoWen;
		extern  bit   bAdGood;
	extern	uint8_t   holdAdBottomOff;
		extern uint8_t   holdAdBottomShort;
	extern bit   bAdBottomGaoWen;
		extern bit    bAdBottomShort ;
		extern bit    bAdBottomOff ;
		extern uint8_t   curTempBottom ;
	#endif

//Function
    void getTempBottom(void);
	void getTempTOP(void);

#endif